home *** CD-ROM | disk | FTP | other *** search
- Path: flip.eecs.umich.edu!not-for-mail
- From: chrismc@flip.eecs.umich.edu (Chris McCormack)
- Newsgroups: comp.sys.cbm
- Subject: Re: ACE with 1670, help needed
- Date: 27 Mar 1996 13:37:17 GMT
- Organization: University of Michigan EECS
- Message-ID: <4jbgad$ls7@news.eecs.umich.edu>
- References: <4j95tp$3hp@news.xmission.com> <Dow1G7.ovM@undergrad.math.uwaterloo.ca>
- NNTP-Posting-Host: flip.eecs.umich.edu
- X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
-
- riverYard <jshell@xmission.com> wrote:
- :>i found a 1670 modem for a few bucks and stuck it in my commie so i could
- :>finally get ACE and other programs i've been meaning to get, and i'm
- :>wanting to use ACE now to do my file transfers with using FX, but it's
- :>not accepting the modem. The CONFIG file is setup for swiftlink type
- :>modems, and when i tried to reconfigure it to the userport, reboot ace
- :>and use term, it just froze and in the status bar in the baud rate it
- :>said "resrvd" or something like that. How do i configure ACE to use a
- :>userport modem (Getting Swiftlink and a fast modem are on my shopping
- :>list, i got the 1670 to get me by until then).
-
- Craig Bruce (csbruce@ccnga.uwaterloo.ca) wrote:
- : Unfortunately, ACE does not work with a userport modem at this time. I have
- : thought about the design of such a device but I have not gotten around to
- : actually writing one. The current userport device is meant for parallel-
- : interfaced devices.
-
- What would be really neat is modifying ACE not only to use the user port,
- but also to incorporate the high-speed suggestions posted a while back.
- In case you missed it, here is some of the info I saved. (He did it for a
- C64, but if the 64 can hit 9600bps, shouldn't a 128 be able to get 19200
- bps without a Swiftlink?)
- Chris McCormack
- chrismc@eecs.umich.edu
-
- =========================================================================
-
-
- From zcmm1121@rpool8.rus.uni-stuttgart.de Mon May 29 06:48:34 EDT 1995
- Article: 39429 of comp.sys.cbm
- From: zcmm1121@rpool8.rus.uni-stuttgart.de (Daniel Dallmann)
- Newsgroups: comp.sys.cbm
- Subject: 9600baud without swiftlink!
- Date: 29 May 1995 08:45:41 GMT
- Organization: Comp.Center (RUS), U of Stuttgart, FRG
-
- 9600 baud (and perhaps over..) without a swiftlink
- (with normal interfaces only a few modifications are needed)
-
- Its possible to use the serial ports of both CIAs to realize a
- RS232-connection. My sample code enables 9600 baud. Receive 960
- bytes/s (causing only 16% CPU-load) and sending 600 bytes/s
- at the same time (asynchon) with a active VIC (no blank screen or something
- like that).
-
- Sending is no problem at all, you can even send with up to 250kbaud!
- There is one thing to mention: the CIAs serial does the MSB first, but
- standard RS232 does LSB first. So you have to swap every byte received
- or sent. (exchange bit7 <-> bit0...and so on) But thats no problem (you
- can use a 256-byte table, so swapping takes only 4 cycles).
-
- But how to generate the start- and stopbits ?
-
- 0XXX XXXX X111 1111
- ^--data-----^
- | |
- Startbit Stopbit + padding
-
- Note:
- Everytime you have to transmitt one byte, you have to put
- two bytes into the shift-register !
-
- How to program the CIA ?
-
- Use CIA-As shiftregister to send ! (We need NMI for receiving because
- its fast and can't be disabled)
-
- Timer A: Send-timer 51 -> $dc04 (9600 Baud on a PAL C64)
- 0 -> $dc05
- $41 -> $dc0e (start timer + togle SP1 to output)
-
- data -> $dc07...
-
- How to receive ?
-
- You can use time B of CIA-B to generate impulses on PB7.
- Connect PB7 to CNT2 and CIA-Bs shiftregister will read one bit with every
- PB7-signal.
-
- 100 -> $dd06
- 0 -> $dd07 (again 9600 baud)
-
- $03 -> $dd0f
-
- How to timers are used:
-
- CIA A: Timer A - Send baudrate (for SP1)
- Timer B - generation of the normal keyscan-irq
- serial port is used to send.
-
- CIA B: Timer A - unused
- Timer B - receive baudrate (for SP2 but used to generate a
- signal on PB6)
- Timer is triggered by the falling edge of RXD (by software).
- serial port is used to receive
-
- NEEDED HARDWARE:
- The easy way: (RS232 using the CIAs serial port)
-
- The minimal hardware consists of only one MAX232 (i used a TCL232CPE).
- Plus 2 TTL-Inverter, if you want to use RTS,CTS also.
-
- UserPort MAX232 RS232
-
- /!
- (B) -FLAG2--*-----------o< !--------- RXD
- ! 9 \! 8
- (7) SP2--+
-
- (6) CNT2--+
- !
- (L) PB7--+
- !\
- (5) SP1--------------! >o--------- TXD
- 11 !/ 14
-
-
- for RTS,CTS :...
-
- +--+ !\
- (D) PB1--->-!-1!->---! >o--------- RTS
- +--+ 10!/ 7
-
- +--+ /!
- (K) PB6---<-!-1!-<---o< !--------- CTS
- +--+ 11 \!13
-
-
-
- Note:
- If you already havea 'normal' RS232-Interface you just have to
- connect the userport-pins SP2,-FLAG2 and CNT2,PB7.
- (maybe you'll have to disconnect PB7 of your interface !
- These connections don't affect normal RS232-routine, because
- SP1,SP2 are normaly unused and inputs.
-
- I wrote a 'experimental terminal' which uses fast-rs232 (9600 baud)
- its features are:
- send 600 bytes/s
- receive 960 bytes/s (at the same time)
-
- big buffer for up/downloads (>40kbyte)
- (only ascii- up and down loads are possible)
- load/save/erase datafiles (in memory)
- automated login (with redailing...if busy)
- the user-interface is written in basic so you can
- make modifications very easy !
-
- you can get it via anonymous ftp from
- 131.188.190.131 /pub/c64/comm
-
-
- ...Daniel Dallmann <zcmm1121@rpool1.rus.uni-stuttgart.de>
- <Daniel.Dallmann@studbox.uni-stuttgart.de>
-
-